from requests import Request, Session
url='https://vcs.weidai.com.cn/message/sendMsgByImageVerify?_api=message.sendMsgByImageVerify&_mock=false&_stamp=1615953352840'
def get_year(path):
    s = Session()
    data = {
        "phoneNumber": 18011428270,
        "mouldeCode": "wdapp123",
        "uuid": "78632028-0692-4222-8f80-b471719f47c9",
        "imageCode":"",
        "appCode":""
    }
    headers = {
        "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
        "Accept": "*/*",
        "Accept-Encoding": "gzip, deflate, br",
        "Connection": "keep-alive",
        "Host": "vcs.weidai.com.cn"
    }
    req = Request(
        url=url,
        method="POST",
        headers=headers,
        data=data
    )
    prepped = req.prepare()
    prepped.headers['Content-Length']=len(data)
    response = s.send(prepped)
    return response.content.decode("utf8")

result = get_year(path="")
print(result)
